//
//  TopCollectionViewCell.m
//  HandWork
//
//  Created by 王阳阳 on 16/1/20.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TopCollectionViewCell.h"

@implementation TopCollectionViewCell
- (void)dealloc
{
    [_bgimg release];
    [_titlelabel release];
//    [_linview release];
    [super dealloc];
}
#pragma mark - 初始化
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creat];
    }
    return self;
}
- (void)creat
{
    self.bgimg = [[UIImageView alloc]init];
    [self.contentView addSubview:self.bgimg];
    [_bgimg release];
    self.titlelabel = [[UILabel alloc]init];
    [self.contentView addSubview:self.titlelabel];
    [_titlelabel release];
//    self.linview = [[UIView alloc]init];
//    [self.contentView addSubview:self.linview];
//    [_linview release];
}
- (void)layoutSubviews
{
    self.bgimg.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 220);
    self.titlelabel.frame = CGRectMake(0, 220, self.contentView.frame.size.width, 30);
//    self.titlelabel.textColor = [UIColor whiteColor];
//    self.linview.frame = CGRectMake(80, 270, self.contentView.frame.size.width - 80, 1);
//    self.linview.backgroundColor = [UIColor grayColor];
}
@end
